package com.ruyuan.eshop.diplomacy.converter;

import com.ruyuan.eshop.diplomacy.domain.bo.SkuSellerRelationBO;
import com.ruyuan.eshop.diplomacy.domain.dto.SaleContentDTO;
import com.ruyuan.eshop.diplomacy.domain.entity.SkuSellerRelationDO;
import org.mapstruct.Mapper;

import java.util.Collection;
import java.util.List;

/**
 * 可售商品相关对象克隆
 * @author zhonghuashishan
 * @version 1.0
 */
@Mapper(componentModel = "spring")
public interface SkuSellerConverter {
    /**
     * 集合对象克隆
     * @param list
     * @return
     */
    List<SkuSellerRelationBO> converterSellerList(Collection<SkuSellerRelationDO> list);

    /**
     * 对象克隆
     * @param skuSellerRelationDO
     * @return
     */
    SaleContentDTO converterDTO(SkuSellerRelationDO skuSellerRelationDO);
}
